package com.bdqn.springboot;

import com.bdqn.springboot.entity.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringbootApplication.class, args);
        User nnn = (User)run.getBean("nnn");
        System.out.println(nnn.getUname());
        System.out.println(nnn.getAge());
    }

}
